clang-format is a command-line formatting program for C++ that works much better than
any other formatting tools.
| Submitted | ezust - 2015-10-13 23:58:05.800000 | Assigned | daleanson |
|---|---|---|---|
| Priority | 5 | Labels | |
| Status | open | Group | |
| Resolution | None |
| 2015-10-13 23:58:59.969000 ezust |
Ticket moved from /p/jedit/feature-requests/502/ |
|---|---|
| 2015-10-14 21:44:17.116000 daleanson |
I did a little googling since I'm in the middle of some Beauty plugin updates anyway,
so I thought I might take this on. It looks like clang-format is written in python,
which I don't know, and formats C++, which I haven't used in about 15 years, so someone
else should make a separate plugin for this. It should be straightforward for someone
with python, C++, and java experience to package up a plugin to work with the Beauty
plugin. Here are the details from the Beauty plugin docs:
|
| 2015-10-15 06:54:39.097000 kerik-sf |
A generic "external formatter" would be useful, piping buffer content to an external program and returning the external program's output. It could be developped as part of the clang-format plugin and not worry with the configuration ui at first. |
| 2015-12-11 20:53:12.712000 daleanson |
Alan, I added CLangBeauty in jEdit SVN. It's based on Eric's OuterBeauty and seems to work well. Would you give it a try and if it seems okay, let me know and I'll put in a release request. |
| 2015-12-11 20:53:23.633000 daleanson |
- **assigned_to**: Dale Anson |
| 2015-12-11 22:43:32.937000 ezust |
I tried it out and it puts all #include statements on the same line. I am pretty sure
that is a setting we can configure so it won't do that. Let me investigate before
you release it.
|
| 2015-12-11 23:33:48.795000 daleanson |
There are a lot of other settings that could be made, I only implemented |